<%@page   contentType="text/html;charset=UTF-8" %>


function populateIframe(id, text)
      {

         var iframe = document.getElementById(id);
         var doc;
         if(iframe.contentDocument) {
           doc = iframe.contentDocument;  } else {
           doc = iframe.contentWindow.document;  }
         doc.body.innerHTML = text;
      }
      ;
<% String url = request.getParameter("url"); %>
 var iframe = document.getElementById("showID");
 iframe.src = "http://localhost:9080/elconverter/activeX.jsp?url=http://localhost:9080/elconverter/converted?url=http://biosciences.stanford.edu/BMIPhDSupplement2010.doc$rtf";
 //$.ajax({ url: "http://localhost:9080/elconverter/activeX.jsp?url=http://localhost:9080/elconverter/converted?url=http://biosciences.stanford.edu/BMIPhDSupplement2010.doc$rtf", /*username:'admin', password:'admin',*/ success: function(data) {
 //     if (document.getElementById('showID') != null) {
 //          alert(data);
 //         populateIframe("showID", data);
 //         }
 //   }
 // });

